package com.oak.designmode._13_builderPattern;

import lombok.Data;

/**
 * 目标实体
 *
 * @Description
 * @Author guoxy
 * @Date 2020/3/18
 * @Version 1.0
 */
@Data
public class Computer {

    private String cpu;//必须
    private String ram;//必须
    private int usbCount;//可选
    private String keyboard;//可选
    private String display;//可选

    public Computer(String cpu, String ram) {
        this.cpu = cpu;
        this.ram = ram;
    }
//    public void setUsbCount(int usbCount) {
//        this.usbCount = usbCount;
//    }
//    public void setKeyboard(String keyboard) {
//        this.keyboard = keyboard;
//    }
//    public void setDisplay(String display) {
//        this.display = display;
//    }
//    @Override
//    public String toString() {
//        return "Computer{" +
//                "cpu='" + cpu + '\'' +
//                ", ram='" + ram + '\'' +
//                ", usbCount=" + usbCount +
//                ", keyboard='" + keyboard + '\'' +
//                ", display='" + display + '\'' +
//                '}';
//    }
}